const fp = require('lodash/fp');

const ex2 = fp.flowRight(
    fp.prop('name'),
    fp.first
);
